package com.ruoyi.manage.enterprise.service.impl;

import com.ruoyi.common.utils.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.enterprise.domain.LoginLogReport;
import com.ruoyi.manage.enterprise.mapper.LoginLogReportMapper;
import com.ruoyi.manage.enterprise.service.ILoginLogReportService;
import org.springframework.stereotype.Service;


/**
 * 登录日志上报Service业务层处理
 *
 * @author ruoyi
 * @date 2025-09-26
 */
@Service
public class LoginLogReportServiceImpl extends ServiceImpl<LoginLogReportMapper, LoginLogReport> implements ILoginLogReportService{


    @Override
    public LoginLogReport queryGetById(String id){
        LoginLogReport loginLogReport = this.getById(id);
        return loginLogReport;
    }

    /**
     * 新增登录日志上报
     *
     * @param loginLogReport 登录日志上报
     * @return 结果
     */
    @Override
    public boolean addLoginLogReport(LoginLogReport loginLogReport){
        boolean save =this.save(loginLogReport);
        return save;
    }

    /**
     * 修改登录日志上报
     *
     * @param loginLogReport 登录日志上报
     * @return 结果
     */
    @Override
    public boolean updateLoginLogReport(LoginLogReport loginLogReport){
        return this.updateById(loginLogReport);
    }

    /**
     * 批量删除登录日志上报
     *
     * @param ids 需要删除的登录日志上报主键
     * @return 结果
     */
    @Override
    public boolean deleteLoginLogReportByIds(String[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
